/**
 * 
 * @author: xj.huang
 * @date: 2021/08/06 10:26:17
 */
export default class handAni extends Laya.Script {
    
    constructor() {
        super()
    }
    onAwake(){
        this.onNextAni()
    }
    onPlayAni(){
        Laya.Tween.to(this.owner,{x:-10,y:-10},200,null,Laya.Handler.create(this,this.onNextAni))

    }
    onNextAni(){
        Laya.Tween.to(this.owner,{x:0,y:0},200,null,Laya.Handler.create(this,this.onPlayAni),1)
    }
}